/**
 * Project Name:dsrs-systemservice-domain
 * File Name:UserLogVo.java
 * Package Name:com.bwda.dsrs.systemservice.domain.vo.userlog;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 */
package com.bwda.dsrs.systemservice.domain.vo.adminlog;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * 管理日志
 *
 * @author liangjianyong
 * @date 2019/4/8
 */
@Data
@ApiModel(description = "系统日志，登录，部门组织机构等模块的日志")
public class AdminLogVo {

    @ApiModelProperty(value = "ID", required = true)
    private String id;

    @ApiModelProperty(value = "用户编号")
    private String userCode;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "组织名称")
    private String orgName;

    @ApiModelProperty(value = "IP地址")
    private String ipAddr;

    @ApiModelProperty(value = "访问客户端标识")
    private String userAgent;

    @ApiModelProperty(value = "请求URI")
    private String requestUri;

    @ApiModelProperty(value = "请求方式get,post")
    private String method;

    @ApiModelProperty(value = "访问参数")
    private String params;

    @ApiModelProperty(value = "操作类型")
    private String operateType;

    @ApiModelProperty(value = "操作名称")
    private String operateContent;

    @ApiModelProperty(value = "结果")
    private Integer status;

    @ApiModelProperty(value = "0系统日志，1同步日志，2三方接口，3....")
    private Integer logType;

    @ApiModelProperty(value = "异常信息")
    private String exceptionMsg;

    @ApiModelProperty(value = "登录token")
    private String loginToken;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public Date getCreateTime() {
        if (createTime != null){
            return (Date) createTime.clone();
        }

        return null;
    }

    public void setCreateTime(Date createTime) {
        if (createTime != null){
            this.createTime = (Date) createTime.clone();
        }
    }
}